package com.sz.biz.app.web.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Function: SystemSettings <br>
 * Author: Charles <br>
 * Date: 2016-11-02 10:47:00
 */
@Component
@ConfigurationProperties(prefix = "logistics")
public class SystemSettings {
    private int pageSize;
    private boolean vcodeForTest;
    private int loginAttemptTimes;
    private int loginAttemptSpan;
    private int leftTimesForErrPswd;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public boolean isVcodeForTest() {
        return vcodeForTest;
    }

    public void setVcodeForTest(boolean vcodeForTest) {
        this.vcodeForTest = vcodeForTest;
    }

    public int getLoginAttemptTimes() {
        return loginAttemptTimes;
    }

    public void setLoginAttemptTimes(int loginAttemptTimes) {
        this.loginAttemptTimes = loginAttemptTimes;
    }

    public int getLoginAttemptSpan() {
        return loginAttemptSpan;
    }

    public void setLoginAttemptSpan(int loginAttemptSpan) {
        this.loginAttemptSpan = loginAttemptSpan;
    }

    public int getLeftTimesForErrPswd() {
        return leftTimesForErrPswd;
    }

    public void setLeftTimesForErrPswd(int leftTimesForErrPswd) {
        this.leftTimesForErrPswd = leftTimesForErrPswd;
    }
}
